ti: k3: drivers: ti_sci: Cleanup sequence ID usage
authorAndrew F. Davis <[email protected]>
Wed, 10 Apr 2019 15:49:40 +0000 (11:49 -0400)
committerAndrew F. Davis <[email protected]>
Tue, 23 Apr 2019 15:09:13 +0000 (11:09 -0400)
commit7a469035e96b1e6d9d31d502ed326d53c698a137
treebd0d701330d212aa1bc553c7a544758ad31a4c6e
parentfb98ca5a81aaf010a352e1353ae915c6e4ebfd9b
ti: k3: drivers: ti_sci: Cleanup sequence ID usage

The sequence ID can be set with a message to identify it when it is
responded to in the response queue. We assign each message a number and
check for this same number to detect response mismatches.

Start this at 0 and increase it by one for each message sent, even ones
that do not request or wait for a response as one may still be delivered
in some cases and we want to detect this.

Signed-off-by: Andrew F. Davis <[email protected]>
Change-Id: I72b4d1ef98bf1c1409d9db9db074af8dfbcd83ea
plat/ti/k3/common/drivers/ti_sci/ti_sci.c